package de.breitbeil.jbooking.util;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.richclient.application.Application;

public class StringUtils extends org.springframework.util.StringUtils {

    private static SimpleDateFormat sdf = (SimpleDateFormat) Application.instance().getApplicationContext().getBean("simpleDateFormat");
    
    public static String dateToString(Date date) {
        return (date == null)? "" : sdf.format(date);
    }
    
}
